package banking6;

import banking5.Account;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-10-27
 * Time:11:09
 */
public class Customer {
    //a
    private String firstName;
    private String lastName;
    //使其包含两个关联属性
   SavingsAccount savingsAccount=null;
   CheckingAccount checkingAccount=null;

    //b
    public Customer(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }
    //c
    public String getFirstName() {
        return firstName;
    }
    //c
    public String getLastName() {
        return lastName;
    }
    //d

    public SavingsAccount getSavings() {
        return savingsAccount;
    }
    public void setSavings(SavingsAccount savingsAccount) {
        this.savingsAccount = savingsAccount;
    }
    public CheckingAccount getChecking() {
        return checkingAccount;
    }
    public void setChecking(CheckingAccount checkingAccount) {
        this.checkingAccount = checkingAccount;
    }
}
